home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 13584 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: ami-cg.GraySage.Edmonton.AB.CA!cg
  2. Newsgroups: comp.sys.amiga.misc,comp.sys.amiga.programmer
  3. From: cg@ami-cg.GraySage.Edmonton.AB.CA (Chris Gray)
  4. Subject: Re: toy operating systems, like AmigaOS
  5. References: <skllsf.984983.4.5@groomlake.mil> <4kplgo$o9r@canyon.sr.hp.com> <4ksu6q$haa@nadine.teleport.com> <31724980.226C@herts.ac.uk> <Dpy2GC.1nn@wiloyee.shnet.org>
  6. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  7. MIME-Version: 1.0
  8. Content-Type: text/plain; charset=iso-8859-1
  9. Content-Transfer-Encoding: 8bit
  10. Message-ID: <cg.7ehs@ami-cg.GraySage.Edmonton.AB.CA>
  11. Date: Sat, 20 Apr 96 09:57:07 MST
  12. Organization: Not an Organization
  13.  
  14. In article <Dpy2GC.1nn@wiloyee.shnet.org> chaos@wiloyee.shnet.org writes:
  15.  
  16. > for the developer, lack of memory protection is a pain. but how many
  17. > Unix clones can handle realtime tasks as good as amiga can? Linux can't.
  18. > So your Toy Operating System beats many bigger OSes just because it is
  19. > smaller. If all OS kernels had the same feature list, we would need only
  20. > one kernel. But different applications need different feature lists, and
  21. > different kernels. and there is still use for a small single user multi
  22. > tasking OS without memory protection. You must not see the missing
  23. > feature, you must see the advantages of a simple, performant design.
  24. > add memory protection to Amiga OS and you remove its main advantage.
  25.  
  26. Adding memory protection to an OS does not prevent it from being a real
  27. time OS. The messing around with MMU tables takes only a constant (small)
  28. amount of work - some work when a process is created, or when it allocates
  29. large chunks more of memory. On process switches, only a very small amount
  30. of effort is needed, on most CPUs. Virtual memory, where some memory
  31. gets paged out to disk, *can* prevent real-time performance, but only
  32. if you use more memory than you physically have.
  33.  
  34. The problem with memory protection for the Amiga is that having it will
  35. break most software, and having it increases the cost of message passing,
  36. even after software is fixed to work with it. My guess is that the
  37. increased cost would vary from 10% to 100%, depending on the application.
  38. Things at the high cost end would be things like terminal programs, which
  39. use a message per character sent or received on the serial port (which
  40. is bad programming even now, but I image some do it). The cost to programs
  41. like ray-tracers, compilers, editors, etc. would be quite small. The
  42. average cost is sufficiently small that it would be completely unnoticed
  43. if combined with a switch to a PPC CPU.
  44.  
  45. I *want* memory protection, both as a programmer and as a user.
  46.  
  47. --
  48. Chris Gray   cg@ami-cg.GraySage.Edmonton.AB.CA
  49.